<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SHOP 管理中心 - 类型管理 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="web/back/styles/general.css" rel="stylesheet" type="text/css" />
<link href="web/back/styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>

<h1>
<span class="action-span"><a href="index.php?p=back&c=goodstype&a=add">新建商品类型</a></span>
<span class="action-span1"><a href="index.php?act=main">SHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 商品类型 </span>
<div style="clear:both"></div>
</h1>

<form method="post" action="" name="listForm">
<!-- start goods type list -->
<div class="list-div" id="listDiv">

	<table width="100%" cellpadding="3" cellspacing="1" id="listTable">
		<tbody>
			<tr>
				<th>商品类型名称</th>
				<th>属性数</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
            <?php foreach($types as $type) :?>
			<tr>
				<td class="first-cell"><span onclick="javascript:listTable.edit(this, 'edit_type_name', 1)"><?php echo $type['type_name']?></span></td>
				<td align="right"><?php echo $type['attr_count']?></td>
				<td align="center"><img src="web/back/images/yes.gif"></td>
				<td align="center">
				  <a href="index.php?p=back&c=attribute&a=index&type_id=<?php echo $type['type_id']?>" title="属性列表">属性列表</a> |
				  <a href="index.php?p=back&c=goodstype&a=edit&type_id=<?php echo $type['type_id']?>" title="编辑">编辑</a> |
				  <a href="index.php?p=back&c=goodstype&a=delete&type_id=<?php echo $type['type_id']?>" onclick="" title="移除">移除</a>
				</td>
			</tr>
            <?php endforeach;?>
            <tr>
              <td align="right" nowrap="true" colspan="6" style="background-color: rgb(255, 255, 255);">
                  <div id="turn-page">
                    <?php echo $pageinfo;?>
                  </div>
              </td>
            </tr>
        </tbody>
    </table>

</div>
<!-- end goods type list -->
</form>

<div id="footer">
</div>

</body>
</html>